package xyz.syyrjx;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import xyz.syyrjx.entity.SyyrjxRpcRemoteAddress;

import java.util.Objects;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2023/1/6 - 19:01
 */
@SpringBootApplication
public class ProtocolApplication {
    public static void main(String[] args) {
        SyyrjxRpcRemoteAddress address1 = new SyyrjxRpcRemoteAddress();
        address1.setPort(1);
        address1.setHost("123");
        SyyrjxRpcRemoteAddress address2 = new SyyrjxRpcRemoteAddress();
        address2.setPort(1);
        address2.setHost("123");
        System.out.println(Objects.equals(address1.toRegistryEntity(), address2.toRegistryEntity()));
    }
}
